#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>


int main()
{
	int arr[20] = { 10,9,8,7,6,5,4,3,2,1,99,88,77,66,55,44,33,22,11,0 };
	int i = 0;
	int j = 0;
	for (i = 0; i < 20 - 1; i++)
	{
		for (j = 0; j < 20 - 1 - i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int t = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = t;
			}
		}
	}
	for (i = 0; i < 20; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}